package com.wanmait.demo.pojo;

import java.io.Serializable;
import java.util.Set;

public class Role implements Serializable {
    private Integer id;

    private String name;

    /**
	* 排序
	*/
    private Integer sort;

    private Boolean enble;

    private Set<Permission> permissions;

    public Set<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<Permission> permissions) {
        this.permissions = permissions;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Boolean getEnble() {
        return enble;
    }

    public void setEnble(Boolean enble) {
        this.enble = enble;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", sort=").append(sort);
        sb.append(", enble=").append(enble);
        sb.append("]");
        return sb.toString();
    }
}